Skip to content

[CodeQuality] Add negated support on SingleInArrayToCompareRector #5205

Merged
samsonasik merged 3 commits intomainfrom
negated-support-single
Oct 28, 2023
Merged

[CodeQuality] Add negated support on SingleInArrayToCompareRector #5205
samsonasik merged 3 commits intomainfrom
negated-support-single

Conversation

@samsonasik
Copy link
Copy Markdown
Member

No description provided.

$isIt = in_array(strtolower($type), ['$this'], true);
$isIt = in_array(strtolower($type), ['$this']);

$isIt = in_array(strtolower($type), ['$this', 'two']);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this skipped part for multi data moved to specific fixture

https://github.com/rectorphp/rector-src/pull/5205/files#diff-a723d5612fbb34df879841e8ee175b22f5f9cd3d1523111e41d52ac3d74aa27f

to ease discover bug in the future.

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 5f86e6b into main Oct 28, 2023
@samsonasik samsonasik deleted the negated-support-single branch October 28, 2023 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant